# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=twtxt
pkgver=1.3.1
pkgrel=1
pkgdesc="Decentralised, minimalist microblogging service for hackers"
url="https://github.com/buckket/twtxt"
arch="noarch"
license="MIT"
depends="py3-setuptools py3-dateutil py3-aiohttp py3-click py3-humanize"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/t/twtxt/twtxt-$pkgver.tar.gz"
options="!check" # humanize seems to return a day of difference for an hour

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

package() {
	python3 setup.py install --root="$pkgdir"
}

sha512sums="
13eb8824f565db1e91d922f81a97c1175f901d5f2c4eaba459af284a84022fbdece636d49141f3d8005534aa934a5507b4cb0d6f978f0ea24e00f29b33e4fce6  twtxt-1.3.1.tar.gz
"
